package kitread.model;

import java.util.Comparator;

public class FeedItemComparator implements Comparator<FeedItem> {

	private static FeedItemComparator instance = new FeedItemComparator();
	
	public static FeedItemComparator instance() {
		return instance;
	}
	
	@Override
	public int compare(FeedItem item1, FeedItem item2) {
		return item2.getPublishingDate().compareTo(item1.getPublishingDate());
	}

}
